import {createApp} from 'vue'
import App from './App.vue'
import router from './router/index'
import './assets/base.css'
import 'amfe-flexible'
// import 'vant/lib/index.css'

import { Button } from 'vant'

const app = createApp(App)
// Vue.config.productionTip = false

// 实现不同设备的适配
const rootValue = 16
const rootWidth = 390
const deviceWidth = document.documentElement.clientWidth
document.documentElement.style.fontSize = (deviceWidth * rootValue) / rootWidth + 'px'

app.use(Button)
app.use(router).mount('#app')
